﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="../images/favicon.ico">
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>


<title></title>
</head>
<body>
<div class="ibox-content">
<div style="margin-top:10%"></div>
		<form class="form-horizontal" id="dataform"
			onsubmit="javascripr:return false;">
		<c:if test="${obj ne null }">
			<input type="hidden" name="id" value="${obj.id }">
		</c:if>
		<div class="form-group">
			<label class="col-sm-4 control-label">旧密码<span class="red">*</span></label>
			<div class="col-sm-4">
				<input type="password" dataType="*" class="form-control" name="oldPassword" >
				<div class="Validform_checktip"></div>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-4 control-label">新密码<span class="red">*</span></label>
			<div class="col-sm-4">
				<input type="password" dataType="n1-20" class="form-control" name="newPassword" >
				<div class="Validform_checktip"></div>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-4 control-label">确认密码<span class="red">*</span></label>
			<div class="col-sm-4">
				<input class="form-control" type="password" value="" name="userpassword2" datatype="*" recheck="newPassword" errormsg="您两次输入的账号密码不一致！" >
				<div class="Validform_checktip"></div>
			</div>
		</div>
		<div class="form-group ">
			<div class="col-sm-12 text-center">
				<a href="javascript:;" onclick="myForm.submit()"
					class="btn btn-success radius">修改</a>&nbsp;&nbsp;&nbsp;&nbsp; 
					<!-- <button onclick="MTools.closeForm()" class="btn btn-danger radius" type="button">取消</button> -->
			</div>
		</div>
	</form>
	</div>
</body>
	<script type="text/javascript">
	var myForm=MForm.initForm({
		invokeUrl:"${path}/admin/updatePassword",
	});
	</script>
</body>
</html>